/**
 * Copyright (c) 2017 hadlinks, All Rights Reserved.
 */
package com.bugull.farm.core.frame.exception;

import com.bugull.farm.core.enums.ErrorCodeEnum;

/**
 * Project Name: sanquan-farm 
 * Package Name: com.bugull.farm.core.Exception 
 * ClassName: BuguFrameException
 * Function: TODO ADD FUNCTION.  
 * date: 2017/9/11 9:30
 * @author songwei (songw@hadlinks.com)
 * @since JDK 1.8 
 */
public class BuguFrameException extends BuguAbstractException {

    public BuguFrameException(String message) {
        super(message);
    }

    public BuguFrameException(ErrorCodeEnum errorCode) {
        super(errorCode);
    }

    public BuguFrameException(String message, ErrorCodeEnum errorCode) {
        super(message, errorCode);
    }

    public BuguFrameException(String message, Throwable cause) {
        super(message, cause);
    }

    public BuguFrameException(String message, ErrorCodeEnum errorCode, Throwable cause) {
        super(message, errorCode, cause);
    }

    public BuguFrameException(Throwable cause) {
        super(cause);
    }

    @Override
    public String getErrorMessage() {
        return super.getErrorMessage() == null ? "数据帧解析异常" : super.getErrorMessage();
    }
}
